{menuList}
<br>
<span id="hktime"></span>，<span id="countdownstr"></span>

<form method="post" onsubmit="return chkform(this)" action="op.php?op=agent&fp=bnow7a">
<input type="hidden" name="maxnt2" value={money2}>
<input type="hidden" name="maxnt3" value={money3}>
<input type="hidden" name="maxnt4" value={money4}>
<input type="hidden" name="maxnt5" value={money5}>

<table cellSpacing="1" cellPadding="3" width="720" border="0" bgcolor="#5A79C6">
<tr bgcolor="#c0d6eb">
  <td bgcolor="#c0d6eb" height="28" width="8%" align="center">类别</td>
  <td align="center" bgcolor="#e7ebef" height="28" width="23%">
  <input type="radio" name="type" value=2> 二肖
  <td align="center" bgcolor="#e7ebef" height="28" width="23%">
  <input type="radio" name="type" value=3> 三肖
  <td align="center" bgcolor="#e7ebef" height="28" width="23%">
  <input type="radio" name="type" value=4> 四肖
  <td align="center" bgcolor="#e7ebef" height="28" width="23%">
  <input type="radio" name="type" value=5> 五肖
</tr>
</table>
<table cellSpacing="1" cellPadding="3" width="720" border="0" bgcolor="#5A79C6">
<tr bgcolor="#c0d6eb">
  <td bgcolor="#c0d6eb" height="28" width="8%" align="center">赔率</td>
  <td align="center" bgcolor="#e7ebef" height="28" width="23%">
  {r27_2}
  <td align="center" bgcolor="#e7ebef" height="28" width="23%">
  {r27_3}
  <td align="center" bgcolor="#e7ebef" height="28" width="23%">
  {r27_4}
  <td align="center" bgcolor="#e7ebef" height="28" width="23%">
  {r27_5}
</tr>
</table>
<table cellSpacing="1" cellPadding="3" width="720" border="0" bgcolor="#5A79C6">
<tr>
  <td bgcolor="#c0d6eb" height="28" width="8%" align="center">注额</td>
  <td align="center" bgcolor="#ffffff" height="28" width="23%"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=27&page=-1&order=2&numbers=2">{money2}</a>&#12288;(&nbsp;{win2}&nbsp;)</td>
  <td align="center" bgcolor="#ffffff" height="28" width="23%"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=27&page=-1&order=2&numbers=3">{money3}</a>&#12288;(&nbsp;{win3}&nbsp;)</td>
  <td align="center" bgcolor="#ffffff" height="28" width="23%"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=27&page=-1&order=2&numbers=4">{money4}</a>&#12288;(&nbsp;{win4}&nbsp;)</td>
  <td align="center" bgcolor="#ffffff" height="28" width="23%"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=27&page=-1&order=2&numbers=5">{money5}</a>&#12288;(&nbsp;{win5}&nbsp;)</td>
</tr>
</table>
<table cellSpacing="2" cellPadding="2" width="720" border="0" class=table0>
	<tr>
		<td bgColor="#5a79c6" height="28" width="9%" align="center">
		<div align="center">
			<font color="#ffffff">生肖</font></div>
		</td>
		<td bgColor="#5a79c6" height="28" width="9%" align="center">
		<div align="center">
			<font color="#ffffff">选择</font></div>
		</td>
		<td bgColor="#5a79c6" height="28" width="32%" align="center">
		<div align="center">
			<font color="#ffffff">号码</font></div>
		</td>

		<td bgColor="#5a79c6" height="28" width="9%" align="center">
		<div align="center">
			<font color="#ffffff">生肖</font></div>
		</td>
		<td bgColor="#5a79c6" height="28" width="9%" align="center">
		<div align="center">
			<font color="#ffffff">选择</font></div>
		</td>
		<td bgColor="#5a79c6" height="28" width="32%" align="center">
		<div align="center">
			<font color="#ffffff">号码</font></div>
		</td>
	</tr>
	<tr>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">鼠</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_1"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num1}</td>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">马</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_7"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num7}</td>
	</tr>
	<tr>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">牛</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_2"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num2}</td>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">羊</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_8"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num8}</td>
	</tr>
	<tr>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">虎</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_3"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num3}</td>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">猴</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_9"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num9}</td>
	</tr>
	<tr>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">兔</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_4"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num4}</td>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">鸡</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_10"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num10}</td>
	</tr>
	<tr>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">龙</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_5"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num5}</td>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">狗</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_11"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num11}</td>
	</tr>
	<tr>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">蛇</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_6"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num6}</td>
		<td bgColor="#5a79c6" height="28" align="center"><font color="#ffffff">猪</font></td>
		<td bgColor="#c0d6eb" height="28" align="center"><input type="checkbox" name="num_12"></td>
		<td bgColor="#e7ebef" height="28" align="center">{num12}</td>
	</tr>
</table>
<br>
<table width="720"  cellpadding=1 cellspacing=2 border=1>
	<tr><td class=td5 align=center nowrap>&nbsp;连肖走飞&nbsp;</td><td nowrap>&nbsp;&nbsp;金额
	<input name=b63 value="{b63}" size=8>&#12288;
	<input {startnowdisable} type=submit value="走飞">&#12288;<input type=reset value="清除">&#12288;&#12288;&#12288;&#12288;&#12288;
	<input type=button value="资料刷新" onclick='location.reload()'>&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;
	<input type=button value="走飞资料查询" onclick=prot_list8() onmouseout="this.style.color='';" onmouseover="this.style.color='#0CDDFF';">
	</td></tr>
</table>
<br>
<b>※ </b>请先选择类别，再勾选生肖！<br><font color="#FF0000">※ 勾选的生肖若为本年度生肖则依正赔率计算</font>
</form>


<script>
var _nt2 = {money2};
var _nt3 = {money3};
var _nt4 = {money4};
var _nt5 = {money5};

function chkform(f)
{
  var typecheck = 0;
	var numscount = 0;
	var ratecheck = 0;
	var chinayear = ["", "鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"];
	var aa = "";
	var cc = "";
	var _num = "";
    for (i=0; i<f.type.length; i++) {
        if (f.type[i].checked) {
            typecheck = 1;
			ratecheck = f.type[i].value;
        }
    }
    if (typecheck==0) {
        alert("请先选择类别！");
		return false;
    }
    for (i=1; i<13; i++) {
		if (f.all["num_"+i].checked) {
			if (numscount > 0) { _num+=","; }
			_num += chinayear[i];
			numscount++;
		}
	}
	if (numscount == 0) {
		alert("请选择 " + ratecheck + " 个生肖！");
		return false;
	} else if (numscount < ratecheck) {
		alert("必需选择 " + ratecheck + " 个生肖！");
		return false;
	} else if (numscount > ratecheck) {
		alert("只能选择 " + ratecheck + " 个生肖！");
		return false;
	}
	if (f.b63.value-0 <= 0) {
        alert("走飞金额不可为 0.");
		return false;
    }
	if (ratecheck == 5) {
		cc = "五肖";
		if (f.b63.value-0 > _nt5) {
			alert("走飞金额不可大於「五肖」的下注金额！");
			return false;
		}
	} else if (ratecheck == 4) {
		cc = "四肖";
		if (f.b63.value-0 > _nt4) {
			alert("走飞金额不可大於「四肖」的下注金额！");
			return false;
		}
	} else if (ratecheck == 3) {
		cc = "三肖";
		if (f.b63.value-0 > _nt3) {
			alert("走飞金额不可大於「三肖」的下注金额！");
			return false;
		}
	} else {
		cc = "二肖";
		if (f.b63.value-0 > _nt2) {
			alert("走飞金额不可大於「二肖」的下注金额！");
			return false;
		}
	}
	if (!confirm("连肖走飞内容\n——————————\n"+cc+"\n"+_num+"\n——————————\n金额 "+(f.b63.value-0)+" \n\n是否确定走飞？")) {
		return false;
	}
}

function prot_list8()
{
	var X = (screen.width-700)/2;
	var Y = (screen.Height-424)/2;
	var newwin = window.open("op.php?op=agent&fp=protlists&bmd=9",'WinPopList','menubar=no,status=yes,scrollbars=no,toolbar=no,top='+Y+',left='+X+',width=700,height=424');
}

function nowdate()
{
	document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds())+"</b>";
	now.setTime(now.getTime() + 1000);
	setTimeout("nowdate()",1000);
}

function countdown()
{
	var str = "<font color=red><b>已经截止下注！</b></font>";
	if (timestap >= 0) {
		timediff = timestap;
		days = Math.floor(timediff / (60 * 60 * 24));
		timediff -= days * (60 * 60 * 24);
		hours = Math.floor(timediff / (60 * 60));
		timediff -= hours * (60 * 60);
		mins = Math.floor(timediff / (60));
		timediff -= mins * (60);
		secs = Math.floor(timediff);
	
		str = "距离截止下注时间还有 ";
		if (days > 0 ) str += "<b>" + days + "</b> 天 ";
		if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
		if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
		str += "<b>" + secs + "</b> 秒 ";
		timestap-=1;
	}
	countdownstr.innerHTML =  str;
	setTimeout("countdown()",1000)
}

var timestap = {timestap};
var now = new Date(1000 * {phptime});

nowdate();
countdown();

</script>   